package com.zstu.mall.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.zstu.mall.common.BaseEntity;
import java.io.Serializable;

import java.util.Date;
import javax.persistence.*;

/**
 * @author     : wuyc
 * @description: activity_column
 * @date       : Created in 2019/11/24
 */
@Entity
//防止序列化问题
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" })
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@Table(name = "activity_column")
public class ActivityColumn extends BaseEntity implements Serializable {

	/**
	 * 栏目
	 * default value: '1'
	 */
	@Column(name = "column", nullable = false,length = 255)
	private String column;

	@Transient
	private ProductActivity productActivity;

	public ProductActivity getProductActivity() {
		return productActivity;
	}

	public void setProductActivity(ProductActivity productActivity) {
		this.productActivity = productActivity;
	}

	public ActivityColumn() {
		super(); 
		super.status = "1"; 
		super.remark = " "; 
		super.gmtCreate = new Date(); 
		super.gmtModified = new Date(); 
		this.column = "1";
	}
	
	public String getColumn() {
		return this.column;
	}
	
	public void setColumn(String column) {
		this.column = column;
	}
}
